tewksbury police department was attacked by criminals who infected their network with malware program called cryptolocker .
cryptolocker restricts access to infected computers and demands payment to recover files .
police systems were down between four and five days , and ransom was paid in digital currency by cops in bid to not lose data forever .